# -*- coding: utf-8 -*-

from django.db import models
from core.models import CoreModel, table_prefix


class Post(CoreModel):
    name = models.CharField(null=False, max_length=64, verbose_name="岗位名称")
    code = models.CharField(max_length=32, verbose_name="岗位编码")

    class Meta:
        db_table = table_prefix + "system_post"
        verbose_name = "岗位管理"
        verbose_name_plural = verbose_name
        ordering = ("sort",)
